/**
 * 
 */
package com.psytech.app.task.web_ui.driver.exception;

/**
 * Thrown when the criteria is not supported. By example if a search by
 * description is not available on the Task repository the driver must throw
 * this exception.
 * 
 */
public class InvalidCriteria extends Exception {

	private static final long serialVersionUID = -4267426180953065367L;
	private final String info;

	/**
	 * 
	 * @param info
	 *            a short description on the unsupported criteria.
	 */
	public InvalidCriteria(final String info) {
		this.info = info;
	}

	/**
	 * 
	 * @return information about the unsupported criteria
	 */
	public String getInfo() {
		return this.info;
	}

}
